IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > Count Method : Count<T>(IEntityQuery<T>) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function Count(Of T)( _ ByVal source As IEntityQuery(Of T) _ ) As Integer
'Usage
Dim source As IEntityQuery(Of T) Dim value As Integer value = EntityQueryExtensions.Count(Of T)(source)
[Extension()] public static int Count<T>( IEntityQuery<T> source )
var mgr1 = new DomainModelEntityManager(); var ct = mgr1.Customers.Where(c=> c.Country == "UK").Count();
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2